package jnpf.message.model.message;

import lombok.Data;
import lombok.Getter;

/**
 * 外部同步组织模型
 *
 */
@Data
public class OpenBaseModel {
    /**
     * 操作类型
     */
    private OperationType type;

    @Getter
    public enum OperationType{
        ADD(1, "新增"),
        EDIT(2, "修改"),
        DISABLE(3, "禁用"),
        DELETE(4, "删除"),
        ENABLE(5, "启用");
        ;

        private Integer code;
        private String description;

        OperationType(Integer code, String description) {
            this.code = code;
            this.description = description;
        }
    }

}
